"""yunzhaopin URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from post import views,user
from django.views.generic import TemplateView
urlpatterns = [
    path('admin/', admin.site.urls),
    # path('',views.home,name="home"),
    path('sign_up',user.register,name="register"),
    #     登录
    path('sign_in', user.LoginView.as_view(), name="log"),
    path('quit', user.quit, name="quit"),

# 首页
    path("",TemplateView.as_view(template_name="base.html"),name="home"),

    # path("",views.home.as_view(),name="home"),
#     简历
#     path("jianli",TemplateView.as_view(template_name="jianli.html"),name="jianli"),
#     path("jianli",TemplateView.as_view(template_name="11.html"),name="jianli"),

    path('resume',views.ResumeDetail.as_view(),name='resume'),

#     增加简历
    path('resume/add',views.ResumeAdd.as_view(),name="resume_Add"),
    # path('detail',views.ResumeDetail.as_view,name='detail'),
    path('detail/<int:pk>',views.ResumeDetaill.as_view(),name="detail"),

#     职位)
#     path('position',TemplateView.as_view(template_name="position.html"),name='position'),
    # path('post',views.home.as_view(),name="post"),
    # path('post',TemplateView.as_view(template_name="post.html"),name='post'),

#     职位查询
#     path('search',views.search,name='search'),

    path('search',views.PositListView.as_view(),name='search'),
    path('searchform',views.searchform,name='searchform'),


#     岗位详情页路由
# #     path('detail/<int:pk>/',views.PostDetail.as_view,name='detail'),
    path('dd/<int:pk>/',views.detail,name='dd'),


# 数据可视化
#     path('echart',TemplateView.as_view(template_name="index.html"),name="echart"),
    path('echart',views.echart,name='echart'),
]
